

<form class="layui-form" lay-filter="layuiadmin-form-smscfg" id="layuiadmin-form-smscfg" style="padding: 20px 30px 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">IP</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="text" name="bound_ip" value="{{ d.params.bound_ip || '' }}"  placeholder="请输入IP" autocomplete="off" class="layui-input layui-bg-gray">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">次数/日</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="text" name="limit_day" value="{{ d.params.limit_day || '' }}"  placeholder="次数/日" autocomplete="off" class="layui-input layui-bg-gray">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">次数/月</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="text" name="limit_month" value="{{ d.params.limit_month || '' }}"  placeholder="次数/月" autocomplete="off" class="layui-input layui-bg-gray">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">审核状态</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="radio" name="status" value="1" title="正常" {{ d.params.status == '正常' ? 'checked' : '' }}>
        <input type="radio" name="status" value="0" title="禁用" {{ d.params.status == '正常'? '' : 'checked' }}>
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">是否推送</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="radio" name="need_callback" value="1" title="是" {{ d.params.need_callback ? 'checked' : '' }}>
        <input type="radio" name="need_callback" value="0" title="否" {{ d.params.need_callback ? '' : 'checked' }}>
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">推送地址</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="text" name="report_callback_url" value="{{ d.params.report_callback_url || '' }}" placeholder="推送地址" autocomplete="off" class="layui-input layui-bg-gray">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">上行推送</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="text" name="mo_callback_url" value="{{ d.params.mo_callback_url || '' }}" placeholder="上行推送地址" autocomplete="off" class="layui-input layui-bg-gray">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">通道切换</label>
    <div class="layui-input-block">
      <script type="text/html" template>
        <input type="radio" name="auto_switch" value="1" title="自动" {{ d.params.auto_switch  ? 'checked' : '' }}>
        <input type="radio" name="auto_switch" value="0" title="非自动" {{ d.params.auto_switch ? '' : 'checked' }}>
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-app-smscfg-submit" value="立即提交" class="layui-btn">
    </div>
  </div>
</form>

<script>
layui.use(['index', 'form'], function(){
  var $ = layui.$
  ,form = layui.form;
  
})
</script>